import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

// 完整路由代码
export default new VueRouter({
  routes: [
    {
      path: '/',
      component: () => import('@/views/Main'),
      children: [
        {
          path: '/',
          name: 'home',
          component: () => import('@/views/Home/Home'),
        },
        // {
        //   path: '/user',
        //   name: 'user',
        //   component: () => import('@/views/UserManage/UserManage'),
        // },
        {
          path: '/mall',
          name: 'mall',
          component: () => import('@/views/MallManage/MallManage'),
        },
        {
          path: '/view',
          name: 'view',
          component: () => import('@/views/MallManage/MallManage'),
        },
        {
          path: '/user1',
          name: 'user1',
          component: () => import('@/views/UserManage/User1'),
        },
        {
          path: '/user2',
          name: 'user2',
          component: () => import('@/views/UserManage/User2'),
        },
        {
          path: '/user3',
          name: 'user3',
          component: () => import('@/views/UserManage/User3'),
        },
        {
          path: '/user4',
          name: 'user4',
          component: () => import('@/views/UserManage/User4'),
        },
        {
          path: '/user5',
          name: 'user5',
          component: () => import('@/views/UserManage/User5'),
        },
        {
          path: '/user6',
          name: 'user6',
          component: () => import('@/views/UserManage/User6'),
        },
        {
          path: '/user7',
          name: 'user7',
          component: () => import('@/views/UserManage/User7'),
        },
        {
          path: '/user8',
          name: 'user8',
          component: () => import('@/views/UserManage/User8'),
        },













        {
          path: '/page1',
          name: 'page1',
          component: () => import('@/views/Other/PageOne'),
        },
        {
          path: '/page2',
          name: 'page2',
          component: () => import('@/views/Other/PageTwo'),
        },
      ]
    }
  ]
})